package com.jcnet.bizaia.adapter;

import com.jcnet.bizaia.fragment.DiscussionInfoFragment;
import com.viewpagerindicator.IconPagerAdapter;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;

public class MainAdapter extends FragmentStatePagerAdapter implements IconPagerAdapter{
	
	private String [] mainTitles; 

	public MainAdapter(FragmentManager fm,String [] mainTitles) {
		super(fm);
		// TODO Auto-generated constructor stub
		this.mainTitles = mainTitles;
	}
	
	@Override
	public Fragment getItem(int arg0) {
		// TODO Auto-generated method stub
		return new DiscussionInfoFragment(1);
	}

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return mainTitles.length;
	}

	@Override
	public CharSequence getPageTitle(int position) {
		// TODO Auto-generated method stub
		return null;
	}
	
	@Override
	public int getIconResId(int index) {
		// TODO Auto-generated method stub
		return  0 ;
	}

}
